<?php
return array(
	'class' => 'EditAction',
	'successUrl' => array('edit',array('id'=>Yii::app()->adminUser->id)),
	'operatesReturn' => false,
	'pk' => Yii::app()->adminUser->id,
	'formView' => array(
		'fields' => array(
			'baseInfo' => array(
				// guid不显示
				'guid' => false,
				'id' => false,
				'status' => false,
				'object_type' => false,
				'worker_password' => array('passwordField'),
				'_with' => array(
					'profile.nickname',
					'profile.gender' => array('dropDownList',Yii::app()->enum->options('worker.businessGender')),
					'profile.email',
					'profile.mobile',
				),
			),
			'profile' => array(
				'nickname' => false,
				'gender' => false,
				'email' => false,
				'mobile' => false,
				'id' => false,
				'address' => array('TextField', array('size'=>70)),
				'website' => array('TextField', array('size'=>40)),
			),
		)
	),
	'cascade' => array('profile'),
	'_import' => array(
		array('*', 'actions.edit//*'),
	),
);